#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

void ListTest1()
{
	LTNode* plist = ListInit();

	ListInsert(plist, 4);
	ListInsert(plist, 8);
	ListInsert(plist, 12);
	ListPrint(plist);

	ListPopFront(plist);
	ListRePrint(plist);

	ListPopFront(plist);
	ListRePrint(plist);

	ListPopFront(plist);
	ListRePrint(plist);
}

void ListTest2()
{
	LTNode* plist = ListInit();

	ListInsert(plist, 4);
	ListInsert(plist, 8);
	ListInsert(plist, 12);
	ListPrint(plist);

	ListErase(plist, 17);
	ListPrint(plist);
	ListRePrint(plist);
}

int main()
{
	//ListTest1();
	ListTest2();
	return 0;
}